﻿@model IEnumerable<SchoolCommunicationSystem.Models.FileNames>
@{
    ViewBag.Title = "Quản lý biểu mẫu";
    Layout = "~/Views/Shared/_AdminLayout.cshtml";
}
@Scripts.Render("~/bundles/tablesorter")
@Scripts.Render("~/bundles/tablesorterpaging")
<div id="page-heading">
    <h1>Quản lý danh mục</h1>
</div>
<div class="container">
    <div class="row">
        <div class="col-sm-12">
            <div class="panel panel-primary">
                <div class="panel-heading">
                    <h4>Quản lý biểu mẫu</h4>
                </div>
                <div class="panel-body">
                    @using (Html.BeginForm())
                    {
                        <table class="tablesorter">
                            <thead>
                                <tr>
                                    <th>STT</th>
                                    <th>Tên biểu mẫu</th>
                                    <th>Action</th>
                                </tr>
                            </thead>
                            <tbody>
                                @foreach (var item in Model)
                                {
                                    <tr>
                                        <td>
                                            @Html.DisplayFor(modelItem => item.FileId)
                                        </td>
                                        <td>
                                            @Html.DisplayFor(modelItem => item.FileName)
                                        </td>
                                        <td>
                                            @Html.ActionLink("Tải về", "Download", new { id = item.FileId })

                                        </td>
                                    </tr>
                                }
                            </tbody>
                        </table>
                    }
                </div>
            </div>
        </div>
    </div>
</div>
</div>
